package com.sensePlusVR.widget.dialog;

import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;

import com.sensePlusVR.activity.user.ResetPwdActivity;
import com.sensePlusVR.main.R;
import com.sensePlusVR.utils.MyDialogUtil;
import com.sensePlusVR.utils.MyPageJump;

@SuppressWarnings("unused")
public class ModifyPwdDialog extends BaseDialog implements OnClickListener {
	private static final String TAG = ModifyPwdDialog.class.getSimpleName();
	private Context context;
	private ImageView reset_pwd_del_iv;
	private Button reset_pwd_ok;
	private Button reset_pwd_cancel;

	public ModifyPwdDialog(Context context) {
		super(context,R.style.FullScreen_Dialog_Half_Tran);
		this.context = context;
		init();

	}

	protected ModifyPwdDialog(Context context, int theme) {
		super(context, theme);
		this.context = context;
		init();

	}
	
	private void init() {
		
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.dialog_reset_password);

		reset_pwd_del_iv = (ImageView) findViewById(R.id.reset_pwd_del_iv);
		reset_pwd_ok = (Button) findViewById(R.id.reset_pwd_ok);
		reset_pwd_cancel = (Button) findViewById(R.id.reset_pwd_cancel);

		reset_pwd_del_iv.setOnClickListener(this);
		reset_pwd_ok.setOnClickListener(this);
		reset_pwd_cancel.setOnClickListener(this);

	}
	
	@Override
	public void show() {
		super.show();
		MyDialogUtil.setDialogFullScreen(context, this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.reset_pwd_del_iv:
			dismiss();
			break;
		case R.id.reset_pwd_ok:
			 MyPageJump.pageJump(context, ResetPwdActivity.class);
    		 dismiss();
			break;
		case R.id.reset_pwd_cancel:
			dismiss();
			break;

		}
	}

}
